import Vue from 'vue'
import App from './App'
import store from './store/index.js'
import uView from "uview-ui";
// import './styles/main.scss'
import * as utils from './utils/utils.js'
import directives from '@/directives/index'

import hasPermission from '@/utils/hasPermission';
Vue.prototype.$hasPerm = hasPermission

Vue.use(uView)
Vue.use(directives)
// import { nativePlusToast } from 'utils/utils.js';

// Vue.prototype.nativePlusToast = nativePlusToast;
Vue.config.productionTip = false
Vue.prototype.$utils = utils
App.mpType = 'app'

Vue.filter('dateFilter',(val) => {
	return val.replace(/-/gi,'.');
})


const app = new Vue({
	store,
	...App
})
app.$mount()
